<?php

include_once('../dao/AdminDAO.php');

$admin = new AdminDAO;

$nome = $_POST['login'];
$senha = $_POST['senha'];

if($admin->login($nome, $senha)){
    header("location:index.php");
} else {
    header("location:../");
}
exit;

?>
